home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / mozgnome / nsIGConfService.h next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  8.8 KB  |  211 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIGConfService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIGConfService_h__
  6. #define __gen_nsIGConfService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIGConfService */
  19. #define NS_IGCONFSERVICE_IID_STR "01ac7b2e-c07c-465f-b35c-542eaef420a9"
  20.  
  21. #define NS_IGCONFSERVICE_IID \
  22.   {0x01ac7b2e, 0xc07c, 0x465f, \
  23.     { 0xb3, 0x5c, 0x54, 0x2e, 0xae, 0xf4, 0x20, 0xa9 }}
  24.  
  25. class NS_NO_VTABLE nsIGConfService : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGCONFSERVICE_IID)
  29.  
  30.   /* boolean getBool (in AUTF8String key); */
  31.   NS_IMETHOD GetBool(const nsACString & key, PRBool *_retval) = 0;
  32.  
  33.   /* AUTF8String getString (in AUTF8String key); */
  34.   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) = 0;
  35.  
  36.   /* long getInt (in AUTF8String key); */
  37.   NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval) = 0;
  38.  
  39.   /* float getFloat (in AUTF8String key); */
  40.   NS_IMETHOD GetFloat(const nsACString & key, float *_retval) = 0;
  41.  
  42.   /* void setBool (in AUTF8String key, in boolean value); */
  43.   NS_IMETHOD SetBool(const nsACString & key, PRBool value) = 0;
  44.  
  45.   /* void setString (in AUTF8String key, in AUTF8String value); */
  46.   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) = 0;
  47.  
  48.   /* void setInt (in AUTF8String key, in long value); */
  49.   NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) = 0;
  50.  
  51.   /* void setFloat (in AUTF8String key, in float value); */
  52.   NS_IMETHOD SetFloat(const nsACString & key, float value) = 0;
  53.  
  54.   /* AUTF8String getAppForProtocol (in AUTF8String scheme, out boolean enabled); */
  55.   NS_IMETHOD GetAppForProtocol(const nsACString & scheme, PRBool *enabled, nsACString & _retval) = 0;
  56.  
  57.   /* boolean handlerRequiresTerminal (in AUTF8String scheme); */
  58.   NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, PRBool *_retval) = 0;
  59.  
  60.   /* void setAppForProtocol (in AUTF8String scheme, in AUTF8String command); */
  61.   NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) = 0;
  62.  
  63. };
  64.  
  65. /* Use this macro when declaring classes that implement this interface. */
  66. #define NS_DECL_NSIGCONFSERVICE \
  67.   NS_IMETHOD GetBool(const nsACString & key, PRBool *_retval); \
  68.   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval); \
  69.   NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval); \
  70.   NS_IMETHOD GetFloat(const nsACString & key, float *_retval); \
  71.   NS_IMETHOD SetBool(const nsACString & key, PRBool value); \
  72.   NS_IMETHOD SetString(const nsACString & key, const nsACString & value); \
  73.   NS_IMETHOD SetInt(const nsACString & key, PRInt32 value); \
  74.   NS_IMETHOD SetFloat(const nsACString & key, float value); \
  75.   NS_IMETHOD GetAppForProtocol(const nsACString & scheme, PRBool *enabled, nsACString & _retval); \
  76.   NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, PRBool *_retval); \
  77.   NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command); 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  80. #define NS_FORWARD_NSIGCONFSERVICE(_to) \
  81.   NS_IMETHOD GetBool(const nsACString & key, PRBool *_retval) { return _to GetBool(key, _retval); } \
  82.   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) { return _to GetString(key, _retval); } \
  83.   NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval) { return _to GetInt(key, _retval); } \
  84.   NS_IMETHOD GetFloat(const nsACString & key, float *_retval) { return _to GetFloat(key, _retval); } \
  85.   NS_IMETHOD SetBool(const nsACString & key, PRBool value) { return _to SetBool(key, value); } \
  86.   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) { return _to SetString(key, value); } \
  87.   NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) { return _to SetInt(key, value); } \
  88.   NS_IMETHOD SetFloat(const nsACString & key, float value) { return _to SetFloat(key, value); } \
  89.   NS_IMETHOD GetAppForProtocol(const nsACString & scheme, PRBool *enabled, nsACString & _retval) { return _to GetAppForProtocol(scheme, enabled, _retval); } \
  90.   NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, PRBool *_retval) { return _to HandlerRequiresTerminal(scheme, _retval); } \
  91.   NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) { return _to SetAppForProtocol(scheme, command); } 
  92.  
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIGCONFSERVICE(_to) \
  95.   NS_IMETHOD GetBool(const nsACString & key, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBool(key, _retval); } \
  96.   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(key, _retval); } \
  97.   NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt(key, _retval); } \
  98.   NS_IMETHOD GetFloat(const nsACString & key, float *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloat(key, _retval); } \
  99.   NS_IMETHOD SetBool(const nsACString & key, PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBool(key, value); } \
  100.   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(key, value); } \
  101.   NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(key, value); } \
  102.   NS_IMETHOD SetFloat(const nsACString & key, float value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloat(key, value); } \
  103.   NS_IMETHOD GetAppForProtocol(const nsACString & scheme, PRBool *enabled, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForProtocol(scheme, enabled, _retval); } \
  104.   NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandlerRequiresTerminal(scheme, _retval); } \
  105.   NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppForProtocol(scheme, command); } 
  106.  
  107. #if 0
  108. /* Use the code below as a template for the implementation class for this interface. */
  109.  
  110. /* Header file */
  111. class nsGConfService : public nsIGConfService
  112. {
  113. public:
  114.   NS_DECL_ISUPPORTS
  115.   NS_DECL_NSIGCONFSERVICE
  116.  
  117.   nsGConfService();
  118.  
  119. private:
  120.   ~nsGConfService();
  121.  
  122. protected:
  123.   /* additional members */
  124. };
  125.  
  126. /* Implementation file */
  127. NS_IMPL_ISUPPORTS1(nsGConfService, nsIGConfService)
  128.  
  129. nsGConfService::nsGConfService()
  130. {
  131.   /* member initializers and constructor code */
  132. }
  133.  
  134. nsGConfService::~nsGConfService()
  135. {
  136.   /* destructor code */
  137. }
  138.  
  139. /* boolean getBool (in AUTF8String key); */
  140. NS_IMETHODIMP nsGConfService::GetBool(const nsACString & key, PRBool *_retval)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* AUTF8String getString (in AUTF8String key); */
  146. NS_IMETHODIMP nsGConfService::GetString(const nsACString & key, nsACString & _retval)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* long getInt (in AUTF8String key); */
  152. NS_IMETHODIMP nsGConfService::GetInt(const nsACString & key, PRInt32 *_retval)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* float getFloat (in AUTF8String key); */
  158. NS_IMETHODIMP nsGConfService::GetFloat(const nsACString & key, float *_retval)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* void setBool (in AUTF8String key, in boolean value); */
  164. NS_IMETHODIMP nsGConfService::SetBool(const nsACString & key, PRBool value)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* void setString (in AUTF8String key, in AUTF8String value); */
  170. NS_IMETHODIMP nsGConfService::SetString(const nsACString & key, const nsACString & value)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* void setInt (in AUTF8String key, in long value); */
  176. NS_IMETHODIMP nsGConfService::SetInt(const nsACString & key, PRInt32 value)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* void setFloat (in AUTF8String key, in float value); */
  182. NS_IMETHODIMP nsGConfService::SetFloat(const nsACString & key, float value)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* AUTF8String getAppForProtocol (in AUTF8String scheme, out boolean enabled); */
  188. NS_IMETHODIMP nsGConfService::GetAppForProtocol(const nsACString & scheme, PRBool *enabled, nsACString & _retval)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* boolean handlerRequiresTerminal (in AUTF8String scheme); */
  194. NS_IMETHODIMP nsGConfService::HandlerRequiresTerminal(const nsACString & scheme, PRBool *_retval)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* void setAppForProtocol (in AUTF8String scheme, in AUTF8String command); */
  200. NS_IMETHODIMP nsGConfService::SetAppForProtocol(const nsACString & scheme, const nsACString & command)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204.  
  205. /* End of implementation class template. */
  206. #endif
  207.  
  208. #define NS_GCONFSERVICE_CONTRACTID "@mozilla.org/gnome-gconf-service;1"
  209.  
  210. #endif /* __gen_nsIGConfService_h__ */
  211.